﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeixinBusiness.Model
{
    public class MenuSetting
    {
        private string _menuId = Guid.NewGuid().ToString();
        /// <summary>
        /// 菜单Id
        /// </summary>
        public string MenuId
        {
            get
            {
                return _menuId;
            }
            set
            {
                _menuId = value;
            }
        }
        /// <summary>
        /// 上级菜单Id
        /// </summary>
        public string ParentId { get; set; }
        /// <summary>
        /// 公众号Id
        /// </summary>
        public long SystemConfigId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 菜单key
        /// </summary>
        public string MenuKey { get; set; }
        /// <summary>
        /// 菜单类型 
        /// </summary>
        public int MenuType { get; set; }
        /// <summary>
        /// 菜单链接
        /// </summary>
        public string MenuUrl { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Orderby { get; set; }
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ModifyTime { get; set; }
        /// <summary>
        /// 是否需要用户授权
        /// </summary>
        public bool Authorization { get; set; } = false;
        /// <summary>
        /// 是否开放给用户修改
        /// </summary>
        public bool IsOpen { get; set; }
    }
}
